<template>
  <footer class="footer">
    <span class="todo-count"
      ><strong>{{ numList }}</strong
      >剩余</span
    >
    <ul class="filters">
      <li>
        <a class="selected" href="#/" @click="toDoing">全部</a>
      </li>
      <li>
        <a href="#/active" @click="toDoing">进行中</a>
      </li>
      <li>
        <a href="#/completed">已完成</a>
      </li>
    </ul>
    <button class="clear-completed" @click="clearDoneList">清除已完成</button>
  </footer>
</template>

<script>
export default {
  name: 'ListFooter',
  props: {
    numList: {
      type: Number,
      required: true
    }
  },
  methods: {
    toDoing () {
      this.$emit('toDoing')
    },
    clearDoneList () {
      this.$emit('clearDoneList')
    }
  }
}
</script>

<style></style>
